<template>
  <div class="app-container">
    <div class="app-main">
      <div class="mainName">查询统计</div>
      <el-form
        :model="queryParams"
        ref="queryForm"
        size="small"
        label-width="70px"
        class="formSty"
      >
        <el-row>
          <el-col :span="6">
            <el-form-item label="报表名称" prop="name">
              <el-input
                v-model="queryParams.name"
                placeholder="请输入"
                size="small"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label-width="10px">
              <el-button
                type="primary"
                icon="el-icon-search"
                size="mini"
                @click="handleQuery"
                >查询</el-button
              ></el-form-item
            >
          </el-col>
        </el-row>
      </el-form>
      <el-table v-loading="loading" :data="list" border stripe :key="1">
        <el-table-column label="单位名称" align="center" prop="name1" />
        <el-table-column label="企业全称" align="center" prop="name2" />
        <el-table-column label="操作" align="center" width="100">
          <template slot-scope="scope">
            <div>
              <el-button type="primary" size="small">前往</el-button>
            </div>
          </template>
        </el-table-column>
      </el-table>
      <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
        class="pagination-container"
      />
    </div>
  </div>
</template>

<script>
export default {
  name: "reportSearch",
  data() {
    return {
      queryParams: {
        name: "",
        pageNum: 1,
        pageSize: 10,
      },
      loading: false,
      total: 0,
      list: [],
    };
  },
  created() {
    this.getList();
  },
  methods: {
    getList() {},
    handleQuery() {
      this.getList();
    },
  },
};
</script>

<style lang="scss" scoped>
.app-main {
  background-color: #fff;
  // padding: 15px 20px;
  border-radius: 8px;
  .mainName {
    font-family:
      PingFangSC,
      PingFang SC;
    font-weight: 500;
    font-size: 16px;
    height: 30px;
    line-height: 30px;
    color: #000000;
    border-bottom: 1px solid #dcdfe6;
    margin-bottom: 10px;
  }
  .btnGroup {
    text-align: right;
    margin: 15px 0;
  }
}
</style>
